package calvin.study.springboot.model.configprop;

import java.util.List;
import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;
import lombok.ToString;

@Component
//将配置文件中以person开头的属性注入到该类
@ConfigurationProperties(prefix="person")
@Data
@ToString
public class Person {
	
	private Integer id;
	private String name;
	private List hobby;
	private String [] family;
	private Map map;
	private Pet pet;

}
